
<div class="modal-body no-p">
  <div class="row">
    <div class="col-xs-12">
      <section class="panel panel-primary no-b">
        <header class="panel-heading clearfix brtl brtr">
          <div class="overflow-hidden">
            <a href="javascript:;" class="h4 show no-m pt5">评论回复</a>
          </div>
        </header>

        <div class="list-group" style="text-align: center;padding-top: 10px;">
         
          <table width="80%" style="padding:10px;">
          	 <tr>
              <td width="30%" align="right">评论内容：</td>
              <td width="70%" align="left"  style="padding:20px 0;">
               {{comment.content}}
              </td>
            </tr>
              <tr>
              <td width="30%" align="right">回复内容：</td>
              <td width="70%" align="left">
                <textarea id="replyContent" class="control-group" cols="50" rows="5">{{comment.reply}}</textarea>
              </td>
            </tr>
          </table>
          
        </div>

      

      </section>

    </div>
  </div>
</div>
<div class="modal-footer">
  <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
 
  <button onclick="save()" id="save" type="button" class="btn btn-primary" data-loading-text="正在提交...">确 定</button>

</div>
<script type="text/javascript">
  var is_page=true;
  function save(){
    if($("#replyContent").val()==""){
      Toast.error("内容不可为空");
      $("#replyContent").focus();
      return false;
    }
    var btn = $("#save");
    var dialog = $("#dialogDetail");
    btn.button("loading");
    $.post("/store/comment/edit", {id: {{comment.id}},content:$("#replyContent").val()}, function (data) {
      if (data.errno == 0) {
        Toast.success("发送成功");
        dialog.modal("hide");
        datatable.ajax.reload();
      } else {
        Toast.error(data.errmsg);
      }
      btn.button("reset");

    }, "json");
  }
</script>
